home *** CD-ROM | disk | FTP | other *** search
/ Disney's Chicken Little …e) (Electronic Press Kit) / Disney's Chicken Little (Europe) (Electronic Press Kit).bin / bv_cl_menu_uk.swf / scripts / frame_5 / PlaceObject2_40_15 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2005-09-21  |  798b  |  33 lines

  1. onClipEvent(enterFrame){
  2.    fishx1 = _X;
  3.    fishy1 = _Y;
  4.    fishh1 = _xscale;
  5.    fishw1 = _yscale;
  6.    fisha1 = _alpha;
  7.    if(Math.abs(fishx1 - _root.fishXtemp) > 1)
  8.    {
  9.       fishx1 += (_root.fishXtemp - fishx1) / 8;
  10.       _X = fishx1;
  11.    }
  12.    if(Math.abs(fishy1 - _root.fishYtemp) > 1)
  13.    {
  14.       fishy1 += (_root.fishYtemp - fishy1) / 8;
  15.       _Y = fishy1;
  16.    }
  17.    if(Math.abs(fishh1 - _root.fishScaletemp) > 1)
  18.    {
  19.       fishh1 += (_root.fishScaletemp - fishh1) / 8;
  20.       _xscale = fishh1;
  21.    }
  22.    if(Math.abs(fishw1 - _root.fishScaletemp) > 1)
  23.    {
  24.       fishw1 += (_root.fishScaletemp - fishw1) / 8;
  25.       _yscale = fishw1;
  26.    }
  27.    if(Math.abs(fisha1 - _root.fishAtemp) > 1)
  28.    {
  29.       fisha1 += (_root.fishAtemp - fisha1) / 8;
  30.       _alpha = fisha1;
  31.    }
  32. }
  33.